const express = require('express');
const router = express.Router();
const { register, login, topUp } = require('../controllers/userController');
const authenticateToken = require('../middleware/authMiddleware'); 

router.post('/register', register);
router.post('/login', login);
router.post('/top-up', authenticateToken, topUp);

module.exports = router;